/*
 * XML Type:  Other
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.Other
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML Other(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class OtherImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.Other
{
    
    public OtherImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName OTHERDESC$0 = 
        new javax.xml.namespace.QName("", "OTHERDESC");
    private static final javax.xml.namespace.QName OTHERAMOUNT$2 = 
        new javax.xml.namespace.QName("", "OTHERAMOUNT");
    
    
    /**
     * Gets the "OTHERDESC" element
     */
    public java.lang.String getOTHERDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OTHERDESC$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "OTHERDESC" element
     */
    public net.ofx.types.x2003.x04.GenericDescriptionType xgetOTHERDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericDescriptionType target = null;
            target = (net.ofx.types.x2003.x04.GenericDescriptionType)get_store().find_element_user(OTHERDESC$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "OTHERDESC" element
     */
    public void setOTHERDESC(java.lang.String otherdesc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OTHERDESC$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(OTHERDESC$0);
            }
            target.setStringValue(otherdesc);
        }
    }
    
    /**
     * Sets (as xml) the "OTHERDESC" element
     */
    public void xsetOTHERDESC(net.ofx.types.x2003.x04.GenericDescriptionType otherdesc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericDescriptionType target = null;
            target = (net.ofx.types.x2003.x04.GenericDescriptionType)get_store().find_element_user(OTHERDESC$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GenericDescriptionType)get_store().add_element_user(OTHERDESC$0);
            }
            target.set(otherdesc);
        }
    }
    
    /**
     * Gets the "OTHERAMOUNT" element
     */
    public java.lang.String getOTHERAMOUNT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OTHERAMOUNT$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "OTHERAMOUNT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetOTHERAMOUNT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(OTHERAMOUNT$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "OTHERAMOUNT" element
     */
    public void setOTHERAMOUNT(java.lang.String otheramount)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OTHERAMOUNT$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(OTHERAMOUNT$2);
            }
            target.setStringValue(otheramount);
        }
    }
    
    /**
     * Sets (as xml) the "OTHERAMOUNT" element
     */
    public void xsetOTHERAMOUNT(net.ofx.types.x2003.x04.AmountType otheramount)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(OTHERAMOUNT$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(OTHERAMOUNT$2);
            }
            target.set(otheramount);
        }
    }
}
